package cn.xw.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class memberController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/getUserInfo")
    public Map<String,Object> getUserInfo(){
        Map<String,Object> map=new HashMap<>();
        map.put("code",0);
        map.put("name","xiongwei");
        map.put("part",serverPort);
        return map;
    }
}
